import {
  get,
  post,
  _put,
  _patch
} from './http'

export const addUser = (params) => {
  let url = "/api/userList";
  return post(url, params)
}

export const editUser = (params) => {
  let url = "/api/userList/" + params.id
  return _patch(url, params)
}
export const getUserById = (params) => {
  let url = "/api/userList/" + params.id;
  return get(url, params)
}
export const getUserByUsername = (params) => {
  let url = "/api/userList";
  return get(url, params)
}